package com.beehoo.dcportal.admin.dao;

import java.util.List;
import java.util.Map;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.OrganizationBean;

public interface OrganizationDao {

	/**
	 * 查询中心组织机构
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public List<OrganizationBean> queryOrgs(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 查询中心组织机构
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public OrganizationBean queryOrg(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 添加中心组织机构
	 * 
	 * @param communityBean
	 * @return
	 * @throws BaseException
	 */
	public String addOrg(OrganizationBean organizationBean)
			throws BaseException;

	/**
	 * 更新中心组织机构
	 * 
	 * @param communityBean
	 * @return
	 * @throws BaseException
	 */
	public int updateOrg(OrganizationBean organizationBean)
			throws BaseException;

	/**
	 * 删除中心组织机构
	 * 
	 * @param communityId
	 * @return
	 * @throws BaseException
	 */
	public int delOrg(String orgId) throws BaseException;
}
